package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 【请填写功能名称】对象 order
 *
 * @author ruoyi
 * @date 2021-11-15
 */
public class Order extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    private Long saleNo;


    private String address;


    private Date time;


    private String goodName;


    private BigDecimal price;


    private String role;

    private Integer orderNum;

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getSaleNo() {
        return saleNo;
    }

    public void setSaleNo(Long saleNo) {
        this.saleNo = saleNo;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTime() {
        return time;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getRole() {
        return role;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("saleNo", getSaleNo())
                .append("address", getAddress())
                .append("time", getTime())
                .append("goodName", getGoodName())
                .append("price", getPrice())
                .append("role", getRole())
                .append("orderNum", getRole())
                .toString();
    }
}
